package com.wuliu.driver.mapper;

import com.wuliu.driver.pojo.Orders;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

/**
* @author Administrator
* @description 针对表【orders】的数据库操作Mapper
* @createDate 2025-04-17 14:22:14
* @Entity com.wuliu.driver.pojo.Orders
*/
public interface OrdersMapper {

    //查询该用的订单
    Orders select(Integer did);
    //添加订单
    int add(Orders orders);
    //修改订单状态
    int upd(Integer id,Integer status);

    //修改空车 装车图片
    int updimg(Orders orders);
    //卸货
    int unload(Orders orders);
    //查询订单
    Orders selectOrder(Integer id);
    //根据用户id查询订单
    Map selectOrderByDid(Integer did);
    Map selectOrders(Integer did);

    //查询该用户的所有订单
    List<Map> selectAll(Orders orders);
}
